package com.bosi.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;
@ToString
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message {
    /**
     * 消息类型
     */
    private int type;
    /**
     * 消息头
     */
    private Map<String,Object> header = new HashMap<>();
    /**
     * 消息体
     */
    private String context;
}
